#ifndef cpu_constH
 #define cpu_constH

  #define GrandCPU2012EWW   //project key

/****************************************************************************************************/
 typedef unsigned int   uint;
 typedef unsigned long  ulng;
 typedef unsigned short usht;
/*##################################################################################################*/

/****************************************************************************************************/
 #define ENI         ( __enable_interrupt()  )
 #define DISI        ( __disable_interrupt() )
 #define NOP         ( __no_operation()      )
 #define YES           1U
 #define NO            0U
 #define EN            1U
 #define DIS           0U
 #define MINX(A,B)        ( A<B ? A : B)
 #define MAXX(A,B)        ( A>B ? A : B)
/*##################################################################################################*/
 
 
 #include <iostream.h>
 #include <iolpc2378.h>
 #include "arm_comm.h"
//  #include "type.h"

 

// #include <intrinsics.h>
 //#include <stdio.h>
 //#include <stdlib.h>

 #include "TypeDef.h"
// #include "SetSystem.h"
// #include "SetPorts.h"
// #include "MacrosPorts.h"
 #include "electro.h"

//#define configCPU_CLOCK_HZ		( ( unsigned long ) PCLKt0 )

 
/* Scheduler includes. */
 #include "FreeRTOS.h"
 #include "task.h"
 #include "queue.h"
 #include "semphr.h"
 


 #include "classUART.h"
 #include "classUARTbuf.h"
 #include "classGOST28147.h" 
 #include "classMODBUS.h"  
 #include "classEK270.h"

 #include "TempConfig.h"
 
 #include "primer.h" 
 #include "adc.h"
#include "modem.h" 
 #include "uart.h"
#include "i2c.h"
#include "uart.h"
#include "rtc.h"
 #include "storage.h"
#include "diskio.h"
#include "comtest2.h"
#include "serial.h"
#include "ff.h"
 #include "string.h"
   #include "camera.h"
 
 #include "sys.h"
  #include "disk.h"

 #define sizeU0           235//30
 #define sizeU3           235
 
 
 #include "LPC23xx_enet.h"
#include "includes.h"
//#include "target.h"
 #define Main_ID          12345
 #define PC_ID            1
 #define Dev_ID           2

//extern int Cfunction(void);
 
 /*Variable define*/
//extern  char *pBufI,*pBufO;
//extern uint buf_size;
//extern xQueueHandle *pqindxI, *pqboardI;
 
 

extern UARTbuf U0;
extern UARTbuf U3;
extern GOST28147 Crypt; 
 
extern char bufU0I[], bufU0O[];
extern uint indU0I, indU0O, brdU0I, brdU0O, brdU0OISR;
extern xQueueHandle qIndU0I, qBrdU0I, qIndU0O, qEndU0OISR;


extern uint trash;
 
 


























#endif